-- GENERATED SPELL FOR [Thessala Hydra] --


function spell0_12207(pUnit, Event) --@Aqua Jet,Self--
pUnit:FullCastSpellOnTarget(21790,pUnit)
pUnit:RegisterEvent('Sorts_12207', 614, 1)
end

function spell1_12207(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_12207', 556, 1)
end

function Sorts_12207(pUnit, Event)
local choix_sorts_12207 = math.random(0, 1)
if choix_sorts_12207 == 0 then
pUnit:RegisterEvent('spell0_12207', 1, 1)
end
if choix_sorts_12207 == 1 then
pUnit:RegisterEvent('spell1_12207', 1, 1)
end
end

function mob12207_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12207', math.random(1500, 3000), 1)
end

function mob12207_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12207_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12207_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12207, 1, 'mob12207_Action')
RegisterUnitEvent(12207, 2, 'mob12207_Leave')
RegisterUnitEvent(12207, 3, 'mob12207_Kill')
RegisterUnitEvent(12207, 4, 'mob12207_Die')
